package cn.jbit.biz.impl;

import cn.jbit.biz.UserBiz;
import cn.jbit.dao.UserDao;
import cn.jbit.houserent.bean.User;

public class UserBizImpl implements UserBiz {

	private UserDao ud;
	@Override
	public User login(String name, String pwd) {
		return ud.findUser(name, pwd);
	}
	public void setUd(UserDao ud) {
		this.ud = ud;
	}
	@Override
	public void addUser(User user) {
		ud.addUser(user);
	}

}
